import request from '@/router/axios'

export function fetchList (query) {
  return request({
    url: '/admin/tags/list',
    method: 'get',
    params: query
  })
}

export function fetchTagsAll (query) {
  return request({
    url: '/admin/tags/all',
    method: 'get',
    params: query
  })
}


export function putTag(query) {
  return request({
    url: "/admin/tags/put",
    method: "post",
    data: query
  });
}

export function deleteTag(id) {
  return request({
    url: "/admin/tag/delete",
    method: "get",
    params: {id: id}
  });
}

export function checkTagNum(query) {
  return request({
    url: "/admin/tags/checkTagNum",
    method: "get",
    params: query
  });
}



